x11: Fix the _NET_SUPPORTING_WM_CHECK window fetch to be spec compliant
authorRui Matos <tiagomatos@gmail.com>
Mon, 9 Jan 2012 05:54:08 +0000 (05:54 +0000)
committerRui Matos <tiagomatos@gmail.com>
Mon, 16 Jan 2012 15:38:33 +0000 (15:38 +0000)
commitf0a80fa308d76d5af209a463bc8b66f72c386963
tree13d7f9626c16f7ead28278e9b344341da037a65c
parent608637b5629c94b540c85b27e82356b164c72e05
x11: Fix the _NET_SUPPORTING_WM_CHECK window fetch to be spec compliant

"The child window MUST also have the _NET_SUPPORTING_WM_CHECK property set to
the ID of the child window. […] If the _NET_SUPPORTING_WM_CHECK window on the
client window is missing or not properly set, clients SHOULD assume that no
conforming Window Manager is present."

This commit implements that, which allows us to not have to do a
XGetWindowProperty() every N seconds when running under a compliant WM.

This is also a more correct fix for the bug handled in commit
daf29bffeddc02a7ac55905a79d040c299a37eee.

https://bugzilla.gnome.org/show_bug.cgi?id=666921
gdk/x11/gdkscreen-x11.c